package com.anti.modular.bus.busrealestatefloor.service;

import com.anti.commom.api.Result;
import com.anti.jdbc.support.page.PageParam;
import com.anti.jdbc.support.page.PageResult;
import com.anti.modular.bus.busrealestatefloor.entity.BusRealEstateFloor;
import com.anti.modular.bus.busrealestatefloor.param.BusRealEstateFloorParam;
import com.anti.modular.bus.busrealestatefloor.result.FloorListResult;

import java.util.ArrayList;
import java.util.List;

/**
 * 房产楼层表service接口
 *
 * @author anti
 * @date 2021-04-15 19:15:53
 */
public interface BusRealEstateFloorService{

    /**
    * 根据主键查询实体
    */
    BusRealEstateFloor getById(BusRealEstateFloorParam busRealEstateFloorParam);

    BusRealEstateFloor getFloorById(Long id);

    /**
     * 查询房产楼层表
     *
     * @author anti
     * @date 2021-04-15 19:15:53
     */
    PageResult page(PageParam pageParam,BusRealEstateFloorParam busRealEstateFloorParam);

    /**
     * 房产楼层表列表
     *
     * @author anti
     * @date 2021-04-15 19:15:53
     */
    ArrayList<FloorListResult> list(String estateid);

    List<FloorListResult> busRealEstateFloorListForHave(String estateid);

    /**
     * 添加房产楼层表
     *
     * @author anti
     * @date 2021-04-15 19:15:53
     */
    void add(BusRealEstateFloorParam busRealEstateFloorParam);

    /**
     * 删除房产楼层表
     *
     * @author anti
     * @date 2021-04-15 19:15:53
     */
    Result delete(BusRealEstateFloorParam busRealEstateFloorParam);


    void deleteByFcId(Long id);

    /**
     * 编辑房产楼层表
     *
     * @author anti
     * @date 2021-04-15 19:15:53
     */
    void edit(BusRealEstateFloorParam busRealEstateFloorParam);

    /**
     * 查看房产楼层表
     *
     * @author anti
     * @date 2021-04-15 19:15:53
     */
     BusRealEstateFloor detail(BusRealEstateFloorParam busRealEstateFloorParam);

}
